<meta charset="utf-8"/>
<?php
	require_once 'Cat.class.php';

	$panDuan=$_REQUEST['panDuan'];
	$cat=new Cat();
	switch ($panDuan) {
		case 'jiSuan':
			$num1=$_REQUEST['num1'];
			$num2=$_REQUEST['num2'];
			$oper=$_REQUEST['oper'];
			echo "计算的结果=".$cat->jiSuan($num1,$num2,$oper);
			break;
		
		case 'area':
			$lang=$_REQUEST['lang'];
			$width=$_REQUEST['width'];
			echo "矩形的面积=".$cat->area($lang,$width);
			break;
	}

?>
<a href="Catview.php">返回</a>